import { EChartsOption } from "echarts";

export class ChartsPropsType {
  //图表接口参数

  option: EChartsOption = {
    title: {
      text: "30天用例执行概况图"
    },
    tooltip: {
      trigger: "axis"
    },
    legend: {
      data: ["总用例", "成功用例", "失败用例"]
    },
    grid: {
      left: "3%",
      right: "4%",
      bottom: "3%",
      containLabel: true
    },
    toolbox: {
      feature: {
        saveAsImage: {}
      }
    },
    xAxis: {
      type: "category",
      boundaryGap: false,
      data: [
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9",
        "10",
        "11",
        "12",
        "13",
        "14",
        "15",
        "16",
        "17",
        "18",
        "19",
        "20",
        "21",
        "22",
        "23",
        "24",
        "25",
        "26",
        "27",
        "28",
        "29",
        "30"
      ]
    },
    yAxis: {
      type: "value"
    },
    series: [
      {
        name: "总用例",
        type: "line",
        data: [
          120,
          132,
          101,
          134,
          90,
          230,
          210,
          132,
          101,
          134,
          90,
          230,
          210,
          132,
          101,
          134,
          90,
          230,
          210,
          132,
          101,
          134,
          90,
          230,
          210,
          182,
          191,
          234,
          290,
          330
        ]
      },
      {
        name: "成功用例",
        type: "line",
        data: [
          120,
          182,
          191,
          234,
          290,
          330,
          310,
          182,
          191,
          234,
          290,
          330,
          182,
          191,
          234,
          290,
          330,
          182,
          191,
          234,
          290,
          330,
          182,
          191,
          234,
          290,
          330,
          220,
          182
        ]
      },
      {
        name: "失败用例",
        type: "line",
        data: [
          120,
          232,
          201,
          154,
          190,
          330,
          410,
          232,
          201,
          154,
          190,
          330,
          410,
          232,
          201,
          154,
          190,
          330,
          410,
          232,
          201,
          154,
          190,
          330,
          410,
          232,
          201,
          154,
          190
        ]
      }
    ]
  };
  show?: boolean = true; //是否显示
}
